<?php
/* @var $this UserController */
/* @var $model User */

$this->breadcrumbs=array(
	Yii::t('default','Profile')=>array('profile'),
	Yii::t('user_messages','Change Password'),
);

?>

<h1><?php echo Yii::t('user_messages','Change Password')?></h1>

<div class="form">

<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'user-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

		<?php echo $form->errorSummary($model); ?>
		
		<?php echo $form->passwordFieldControlGroup($model,'password',array('span'=>5,'maxlength'=>128)); ?>
		
		<?php echo $form->passwordFieldControlGroup($model,'newPassword',array('span'=>5,'maxlength'=>128)); ?>
		
		<?php echo $form->passwordFieldControlGroup($model,'confirmPassword',array('span'=>5,'maxlength'=>128)); ?>

		<div >
        <?php echo TbHtml::submitButton(Yii::t('user_messages','Change'),array(
		    'color'=>TbHtml::BUTTON_COLOR_PRIMARY,
		    'size'=>TbHtml::BUTTON_SIZE_DEFAULT,
		)); ?>
	</div>

	
<?php $this->endWidget(); ?>

</div>